<?php

namespace app\adminapi\model\sysfile;

use app\common\model\BaseModel;
use app\common\traits\OperatorTrait;
use think\model\concern\SoftDelete;

class SysFileDO extends BaseModel
{
    use SoftDelete;
    use OperatorTrait;

    protected $name = 'file';
    protected $table = 'sys_file';
    protected $pk = 'id';
    protected $deleteTime = 'deleted';
    protected $defaultSoftDelete = 0;
    protected $autoWriteTimestamp = false;

    protected $schema = [
        'id'=>'int',
        'cid'=>'int',
        'source'=>'int',
        'type'=>'int',
        'name'=>'string',
        'uri'=>'string',
        'create_by'=>'string',
        'create_time'=>'datetime',
        'update_by'=>'string',
        'update_time'=>'datetime',
        'remark'=>'string',
        'deleted'=>'int'
    ];
}